package com.elsa.smart_buffet.pojo.ResultBox;


public class CallBackMessage {
	public static final int SUCCESS = 200;
	public static final int FAIL = 500;
	public static final int ILLEGALARGUMENT_IdOrKey = 404;

	public static final int LOGIN_FAILED = 2;

	private int status = SUCCESS;
	private Object content;

	public CallBackMessage() {
	}

	public CallBackMessage(int status, Object content) {
		super();
		this.status = status;
		this.content = content;
	}

	/**
	 * 默认状态为成功  status = 0
	 * @param content
	 */
	public CallBackMessage(Object content) {
		super();
		this.content = content;
	}

	public int getStatus() {
		return status;
	}

	public CallBackMessage setStatus(int status) {
		this.status = status;
		return this;
	}

	public Object getContent() {
		return content;
	}

	public CallBackMessage setContent(Object content) {
		this.content = content;
		return this;
	}

}
